package sctu.edu.java.year2016.team03.huzhou.day20160523.chapter5_2;

/**
 * Created by Administrator on 2016/5/23.
 */
public class work5_2 {
    public static void main(String[] args) {
        int arr[] = new int[]{5,7,3,9,2,6,4,3};
        int max = arr[0];
        for(int i = 1;i < arr.length;i++){
            max = max > arr[i]?max:arr[i];
        }
        System.out.println("这个一维数组中最大的元素为："+max);

    }
}
